package com.shycloud.mido.homework.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.homework.mapper.OrgMapper;

import lombok.AllArgsConstructor;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@RestController
@AllArgsConstructor
@RequestMapping("/org")
public class OrgController {

    private OrgMapper orgMapper;

    @GetMapping("/list")
    public R list(){
        QueryWrapper queryWrapper = new QueryWrapper<>();
        return new R<>(orgMapper.selectList(queryWrapper));
    }

}